package com.studerb.view.tasks;

import javax.swing.JTabbedPane;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import com.studerb.view.tasks.active.ActiveTasksPane;
import com.studerb.view.tasks.failed.FailedTasksPane;
import com.studerb.view.tasks.scratch.ScratchTasksPane;

public class TasksPane extends JTabbedPane {
    @Autowired protected ActiveTasksPane activeTasksPane;
    @Autowired protected ScratchTasksPane scratchTasksPane;
    @Autowired protected FailedTasksPane failedTasksPane;
    Logger logger = Logger.getLogger(TasksPane.class);

    TasksPane() {
        super();
    }

    public void init() {
        add("Active", activeTasksPane);
        add("Scratch", scratchTasksPane);
        add("Failed", failedTasksPane);
    }

}
